home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0204.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  537 b   |  26 lines

  1. Hi,
  2.  
  3. Can anyone tell me the fastest way to read a 2d map at different 
  4. angles?
  5.  
  6. Example: 
  7. MAP$="ABCD"
  8.            ="EFGH"
  9.            ="IJKL"
  10.  
  11. Angle = 0 then B,F,J will be read
  12. ....
  13. Angle = 45 then B,G,L will be read
  14. etc...
  15.  
  16. Well thats a very simple example, but you get me problem?
  17. Currently I'm just using a gosub for every possible angle (360) which 
  18. is a massive bit of code especially with 10 or more steps!!!
  19.  
  20. In case you're wondering, it's for a simple wolfenstien clone (in AMOS PRO
  21. on the A500).
  22.  
  23. Anyway, thanx in advance...
  24. Rd,
  25.  
  26.